wpforo\classes\Posts D

Total Complexity 597
Dependencies 0
Dependents 1
Total lines 2,212
Lines of code 1,646
Logical lines of code 1,085
Comment lines 277
Methods 79
Properties 3

Methods 79

Method Rating Maintainability Complexity Lines of code
add()
D
27
53 112
edit()
D
30 42 100
get_posts()
D
30 36 102
search()
D
29 36 94
get_thread_tree()
C
36 27 69
delete()
B
40 24 47
get_topic_fields()
B
39 22 57
get_post_fields()
B
38 21 57
get_posts_conditions()
B
44 21 35
get_unread_posts()
B
43 17 45
get_full_url()
B
45 17 35
get_posts_filtered()
A
52 17 21
print_custom_fields()
A
42 13 50
get_position_in_topic()
A
42 12 53
_get_post()
A
52 13 21
strip_guest_fields()
A
53 11 22
view_access()
A
53 11 21
replies()
A
49 10 29
delete_attachments()
A
53 9 20
after_delete_user()
A
50 8 28
fields_structure_full_array()
A
56 8 18
get_liked_posts()
S
49 7 29
get_search_fields()
S
54 7 18
init_fields()
S
38 2 89
set_status()
S
53 6 21
get_parents()
S
54 6 20
get_userids_for_forum()
S
54 6 19
vote_post()
S
56 6 15
get_root()
S
62 6 10
get_children()
S
59 5 13
get_short_url()
S
60 5 13
parents()
S
61 5 12
children()
S
62 5 11
get_best_answer()
S
55 4 21
build_thread_data()
S
58 4 15
get_count()
S
63 5 9
build_thread_tree()
S
61 4 13
get_post_fields_list()
S
61 4 12
get_topic_fields_list()
S
61 4 12
get_fields()
S
68 4 6
rebuild_votes_stats()
S
62 4 10
access_filter()
S
66 4 8
get_post_fields_structure()
S
63 4 10
get_option_items_per_page()
S
60 3 14
is_field()
S
77 3 3
get_field()
S
65 3 9
get_topic_fields_structure()
S
64 3 9
get_root_replies_count()
S
66 3 8
next_post()
S
68 3 6
clear_user_post_votes()
S
67 3 6
has_user_voted_post()
S
68 3 6
get_users_stats_for_topic()
S
59 2 14
get_first_level_replies()
S
62 2 11
root()
S
70 2 6
after_delete_reaction()
S
78 2 3
get_url()
S
74 2 4
reset_fields()
S
69 2 7
get_cache()
S
78 2 3
get_field_key()
S
78 2 3
is_approved()
S
71 2 5
fix_field()
S
71 2 5
_get_forumslug_byid()
S
63 1 12
get_suggested_answers()
S
62 1 12
get_userids_for_topic()
S
66 1 9
get_users_count_for_topic()
S
68 1 7
before_delete_reaction()
S
78 1 3
__construct()
S
83 1 3
get_attachment_id()
S
74 1 4
unapproved_count()
S
78 1 3
is_answered()
S
67 1 9
get_post_url()
S
81 1 3
get_topicslug_byid()
S
78 1 3
_get_topicslug_byid()
S
65 1 10
get_forumslug_byid()
S
78 1 3
get_post()
S
78 1 3
get_option_union_first_post()
S
71 1 5
init_hooks()
S
67 1 7
reset()
S
76 1 3
after_add_reaction()
S
79 1 3